package com.my.coolq.api.request;

import java.io.Serializable;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;

/**
 * 用户消息
 * @author ch
 *
 */
public class UserMsgRequest implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -6725688913244201543L;
	/**
	 * 用户qq号码
	 */
	private Long user_id;
	/**
	 * 发送的内容
	 * string/array
	 */
	private String message;
	/**
	 * 消息内容是否作为纯文本发送（即不解析 CQ 码），message 数据类型为 array 时无效
	 */
	private Boolean is_raw = Boolean.FALSE;
	
	public UserMsgRequest() {}
	
	
	
	public UserMsgRequest(Long user_id, String message) {
		super();
		this.user_id = user_id;
		this.message = message;
	}



	public UserMsgRequest(Long user_id, String message, Boolean is_raw) {
		super();
		this.user_id = user_id;
		this.message = message;
		this.is_raw = is_raw;
	}



	public Long getUser_id() {
		return user_id;
	}
	public void setUser_id(Long user_id) {
		this.user_id = user_id;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public Boolean getIs_raw() {
		return is_raw;
	}
	public void setIs_raw(Boolean is_raw) {
		this.is_raw = is_raw;
	} 
	
	@Override
	public String toString() {
		return JSON.toJSONString(this, SerializerFeature.UseISO8601DateFormat);
	}
	
}
